package com.song.module.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.song.module.system.entity.BaseEntity;

/**
 * 菜谱对象 ap_cookbook
 *

 */

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "菜谱对象")
@Builder
@Accessors(chain = true)
@TableName("ap_cookbook")
public class ApCookbook extends BaseEntity {

    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;


    /**
     * 菜谱ID
     */
    private String foodId;
    /**
     * 名称
     */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 描述
     */
    @Excel(name = "描述")
    @ApiModelProperty(value = "描述")
    private String description;
    /**
     * 图片
     */
    @Excel(name = "图片")
    @ApiModelProperty(value = "图片")
    private String picture;
    /**
     * 点赞数量
     */
    @Excel(name = "点赞数量")
    @ApiModelProperty(value = "点赞数量")
    private Integer thumbUpNumber;


    /**
     * 收藏数量
     */
    @Excel(name = "收藏数量")
    @ApiModelProperty(value = "收藏数量")
    private Integer collectNum;

}
